# 导包
import json

def read_json(filename):
    filepath = "../data/" + filename
    # 打开文件并调用 load方法
    with open(filepath, "r", encoding="utf-8") as f:
        return json.load(f)

if __name__ == '__main__':
    data = read_json("login.json")
    print(data)  # 打印读取的数据

    # 直接访问字典的键值
    arr = [
        data['username'],
        data['password'],
        data['username1'],
        data['number'],
        data['detailed_address']
    ]

    print(arr)